import { FormatMessageProps } from "@/locales"

export const columnsRemarks = (formatMessage: FormatMessageProps) => [
	{
		dataIndex: "serialNumber",
		title: formatMessage({ id: "common.serial_number" }),
		render: (value: any, record: any, index: any) => <p>{index + 1}</p>,
		width: 150,
		align: "center",
		key: "serial_number"
	},
	{
		dataIndex: "updateTime",
		title: formatMessage({ id: "member.user_info.update_time" }),
		render: (value: any, record: any) => <p>{record.createdAt}</p>,
		width: 150,
		align: "center",
		key: "update_time"
	},
	{
		dataIndex: "remarks",
		title: formatMessage({ id: "member.remarks" }),
		render: (value: any, record: any) => <p>{record.remark}</p>,
		width: 150,
		align: "center",
		key: "remarks"
	},
	{
		dataIndex: "noteAccountNumber",
		title: formatMessage({ id: "member.user_info.note_account_number" }),
		render: (value: any, record: any) => <p>{record.operator}</p>,
		width: 150,
		align: "center",
		key: "note_account_number"
	}
]
